
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    HttpSession session1 = request.getSession(false);
    int note_id = 0;
    if (session1 == null || session1.getAttribute("id") == null) {
        response.sendRedirect(request.getContextPath() + "/index.jsp");
    } else {
        note_id = Integer.parseInt(request.getParameter("note_id"));
    }
    String note_name = (String) request.getAttribute("note_name");
    String note_content = (String) request.getAttribute("note_content");
%>
<form action="<%=request.getContextPath()%>/createComment?note_id=<%=note_id%>&note_name=<%=session.getAttribute("note_name")%>&note_content=<%=session.getAttribute("note_content")%>" method="post">
    请留下你的评论：<input name="comment_content" type="text" style="width:900px;height: 200px">
    <input value="提交你的评论" type="submit">
</form>
<style>
    body {
        background-image: url("../picture/new.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: 100% 100%;
    }
</style>
